#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
from bible.TheHolyBible import *


class BibleControllerTest(unittest.TestCase):
    def setUp(self):
        self.target = BibleController()

    def testGetVersions(self):
        versions = self.target.getVersions()
        assert len(versions) != 0, 'BibleController.getVersions() returns versions.'

    def testGetBooks(self):
        datas = self.target.getBooks("GAE")
        assert len(datas) != 0, 'BibleController.getBooks() returns books.'

    def testGetChapters(self):
        datas = self.target.getChapters(1)
        assert len(datas) != 0, 'BibleController.getChapters() returns chapters.'

    def testGetVerses(self):
        datas = self.target.getVerses(1)
        assert len(datas) != 0, 'BibleController.getVerses() returns verses.'

if __name__ == '__main__':
    unittest.main()
